import Layout from '@/layouts/index.vue';
import DashboardIcon from '@/assets/assets-slide-dashboard.svg';

export default [
  {
    path: '/vueflow',
    component: Layout,
    redirect: '/vueflow/base',
    name: 'vueflow',
    meta: { title: 'VueFlow', icon: DashboardIcon },
    children: [
      {
        path: 'base',
        name: 'vueflowBase',
        component: () => import('@/pages/vueflow/index.vue'),
        meta: { title: '基础' },
      },
      {
        path: 'ref',
        name: 'testRef',
        component: () => import('@/pages/vueflow/testRef.vue'),
        meta: { title: 'ref' },
      },
      {
        path: 'snake',
        name: 'snake',
        component: () => import('@/pages/vueflow/snake.vue'),
        meta: { title: 'snake' },
      },
      {
        path: 'reback',
        name: 'reback',
        component: () => import('@/pages/vueflow/reback.vue'),
        meta: { title: 'reback' },
      },
      {
        path: 'APILearn',
        name: 'APILearn',
        component: () => import('@/pages/vueflow/APILearn.vue'),
        meta: { title: 'APILearn' },
      },
      {
        path: 'nest',
        name: 'nest',
        component: () => import('@/pages/vueflow/nest.vue'),
        meta: { title: 'nest' },
      },
      {
        path: 'HJ-FLOW',
        name: 'HJ-FLOW',
        component: () => import('@/pages/HJ-Flow/to-npm/src/index.vue'),
        meta: { title: 'HJ-FLOW' },
      },
    ],
  },
];
